

var mongoose = require('./db.js');
var Schema = mongoose.Schema;

var SSCSchema = new Schema({
    lotteryIndex : { type: Number },
    numRed1: {type: String},                        //
    numRed2: {type: String},                        //
    numRed3: {type: String},                        //
    numRed4: {type: String},                        //
    numRed5: {type: String},                        //
    numRed6: {type: String},                        //
    numBlue: {type: String},                        //
    sunDay: {type: String},                         //
    totalMoney: {type: String},                     //
    rank1Num: {type: String},                       //
    rank1Money: {type: String},                     //
    rank2Num: {type: String},                       //
    rank2Money: {type: String},                     //
    betting: {type: String},                        //
    lotteryDate : { type: Date}                     //
});

module.exports = mongoose.model('SSC', SSCSchema);
